//
//  LongerRentalModifyAPI.m
//  StarOrangeStaff
//
//  Created by lshenrong on 2020/7/13.
//  Copyright © 2020 lshenrong. All rights reserved.
//

#import "LongerRentalModifyAPI.h"

@interface LongerRentalModifyAPI()

@property (nonatomic,copy) NSString *carLrId;
@property (nonatomic,copy) NSString *custId;

@property (nonatomic,copy) NSString *feeType;
@property (nonatomic,copy) NSString *startDate;
@property (nonatomic,copy) NSString *endDate;
@property (nonatomic,copy) NSString *rentFee;

@end

@implementation LongerRentalModifyAPI

- (instancetype)initWithCarLrId:(NSString *)carLrId {
    if (self = [super init]) {
        self.carLrId = carLrId;
        [self testDataAPI];
       
    }
    return self;
}

- (void)testDataAPI {
    self.carLrId = @"2";
    self.custId = @"2";
    self.feeType = @"1";

    self.rentFee = @"10000";
    self.startDate = @"2019-09-01";
    self.endDate = @"2019-09-01";

}

- (NSString *)requestUrl {
    return @"message/car/updateLongRent";
}



- (id)requestAppendArgument{
    
    AvoidNullString(self.carLrId);
    return @{
                @"lrId":self.carLrId,
                @"custId":self.custId,
                @"startDate":self.startDate,
                @"endDate":self.endDate,
                @"rentFee":self.rentFee,
                @"feeType":self.feeType

            };
}


@end
